<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use wapend\assets\AppAsset;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use common\models\HelpColumn;
use wapend\controllers\base\BaseController;
AppAsset::register($this);
$params = Yii::$app->view->params;
$help=HelpColumn::find()->asArray()->all();
$help=BaseController::dataSort($help)
/*
$this->registerJs('jQuery(".sideMen").slide({
							titCell : "dt",
							targetCell : "dd",
							trigger : "click",
							defaultIndex : 0,
							effect : "slideDown",
							delayTime : 300,
							returnDefault : true
						});');*/
?>
<?php $this->beginPage()?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name=”renderer” content=”webkit|ie-comp|ie-stand” /> 
    <?= Html::csrfMetaTags()?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head()?>
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?bc7cac7438f273091e24bb85216d316b";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body
	class="single single-post postid-991 single-format-standard nav_fixed list-comments-r comment-open site-layout-2">
<?php $this->beginBody()?>
<div id='header_top'>
		<div id="top">
			<div class="Inside_pages">
				<div class="Collection">
					欢迎光锐锋堂刀剑网！<em></em><a href="#">收藏我们</a>
				</div>
				<div class="hd_top_manu clearfix">
					<ul class="clearfix">
						<li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">
							<?php if(!Yii::$app->user->isguest):?>
	  		<a href="<?=Url::to('/user/index.html')?>" class="red"><?=Yii::$app->user->identity->username?></a>
						<a href="<?=Url::to('/site/logout.html')?>" data-method='post'
						class="red">退出</a>
        <?php else:?>
        <a href="<?=Url::to('/site/login.html')?>" class="red">[请登录]</a>
						新用户<a href="<?=Url::to('/site/signup.html')?>" class="red">[免费注册]</a>
         <?php endif;?></li>
						<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/user/order.html">我的订单</a></li>
					<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/user/cart.html">购物车</a>
						</li>
						<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="#">联系我们</a></li>
						<li class="hd_menu_tit list_name" data-addclass="hd_menu_hover"><a
							href="#" class="hd_menu">客户服务</a>
							<div class="hd_menu_list">
								<ul>
									<li><a href="#">常见问题</a></li>
									<li><a href="#">在线退换货</a></li>
									<li><a href="#">在线投诉</a></li>
									<li><a href="#">配送范围</a></li>
								</ul>
							</div></li>
						<!-- 
					<li class="hd_menu_tit phone_c" data-addclass="hd_menu_hover"><a
						href="#" class="hd_menu "><em class="iconfont icon-shouji"></em>手机版</a>
						<div class="hd_menu_list erweima">
							<ul>
								<img src="images/erweima.png" width="100px" height="100" />
							</ul>
						</div></li> -->
					</ul>
				</div>
			</div>
		</div>
		<!--顶部样式1-->
		<div id="header" class="header page_style">
			<div class="logo">
				<a href="/site/index.html"><img src="/images/logo.png" /></a>
			</div>
			<!--结束图层-->
			<div class="Search">
				<p>
					<?php ActiveForm::begin(['action'=>'/goods/index.html','method'=>'get'])?>
					<input name="GoodsSearch[name]" type="text" class="text" /><input
						type="submit" value="搜 索" class="Search_btn" />
				<?php ActiveForm::end()?>
				</p>
				<p class="Words">
					<a href="/goods/index.html?GoodsSearch[name]=武士刀">武士刀</a><a href="/goods/index.html?GoodsSearch[name]=唐刀">唐刀</a><a href="/goods/index.html?GoodsSearch[name]=斩马刀">斩马刀</a>
				</p>
			</div>
			<!--购物车样式-->
			<div class="hd_Shopping_list" id="Shopping_list">
			<?php if(Yii::$app->user->isGuest):?>
    			<div class="s_cart">
				<em class="iconfont icon-cart2"></em><a href="#">我的购物车</a> <i
					class="ci-right">&gt;</i><i class="ci-count" id="shopping-amount">0</i>
			</div>
			<div class="dorpdown-layer">
				<div class="spacer"></div>

				<div class="prompt"></div>
				<div class="nogoods">
					还未登录！<a href="<?=Url::to('/site/login.html')?>"
						style="color: #ff4e00;">马上登录</a> 查看购物车！
				</div>

			</div>
			<?php else:?>
			<div class="s_cart">
				<em class="iconfont icon-cart2"></em><a href="#">我的购物车</a> <i
					class="ci-right">&gt;</i><i class="ci-count" id="shopping-amount"><?=$params['cartCount']?></i>
			</div>
			<div class="dorpdown-layer">
			<?php if(isset($params['cart']) && !empty($params['cart'])):?>
				<div class="spacer"></div>

				<ul class="p_s_list">
				
				<?php foreach($params['cart'] as $val):?>
					<li>
						<div class="img">
							<img src="<?=str_replace('mid', 'small',$val['goods']['logo'])?>">
						</div>
						<div class="content1">
							<p>
								<a href="/goods/view/<?=$val['id']?>.html"><?=mb_strimwidth($val['goods']['name'], 0,30,'...','utf8' )?></a>
							</p>
							
							<p>数量:<?=$val['num']?>/把</p>
							<p></p>
						</div>
						<div class="Operations">
							<p class="Price">￥<?=$val['goods']['price']?></p>
							<p>
								<a href="#">删除</a>
							</p>
						</div>
					</li>
					<?php endforeach;?>
				
				</ul>
				<div class="Shopping_style">
					<div class="p-total">
						共<b class='cart_total'><?=$params['cartCount']?></b>件商品
					</div>
					<a href="/user/cart.html" title="去购物车结算" id="btn-payforgoods"
						class="Shopping">去购物车结算</a>
				</div>
				<?php else:?>
				<div class="nogoods">
					<b></b>购物车中还没有商品，赶紧选购吧！
				</div>
				<?php endif;?>
			</div>
			<?php endif;?>
		</div>
		</div>
	</div>
	<!--Begin Menu Begin-->
	<div class="menu_bg">
		<div class="menu">
			<!--Begin 商品分类详情 Begin-->
			<div class="nav">
				<div class="nav_t">全部商品分类</div>
				<div class="leftNav none">
					<ul>      
                      <?php if(isset($params['column'][0])):?>
				<?php foreach($params['column'][0] as $val):?>
                    <li>
							<div class="fj">
								<span class="n_img"><span></span><img src="/images/nav1.png" /></span>
								<span class="fl"><?=$val['name']?></span>
							</div>
                        <?php if(isset($params['column'][$val['id']])):?>
                        <div class="zj">
								<div class="zj_l">
                            	<?php foreach($params['column'][$val['id']] as $v):?>
                                <div class="zj_l_c">
										<h2><?=$v['name']?></h2>
									</div>
                               <?php endforeach;?> 
                            </div>
							</div>
                    	<?php endif;?>
                    </li>
               <?php endforeach;?>
               <?php endif;?>                 	
                </ul>
				</div>
			</div>
			<!--End 商品分类详情 End-->
			<ul class="menu_r">
				<li><a href="/site/index.html">首页</a></li>
				 <?php if(isset($params['column'][0])):?>
				<?php foreach($params['column'][0] as $val):?>
				<li><a href="/goods/index-<?=$val['id']?>.html"><?=$val['name']?></a></li>
				<?php endforeach;?>
               <?php endif;?>  
			</ul>
		</div>
	</div>
	</div>
	<div class="user_style clearfix">
		<div class="user_center">

			<!--左侧菜单栏-->
			<div class="left_style">
				<div class="menu_style">
					<div class="user_title">用户中心</div>
					<div class="user_Head">
						<div class="user_portrait">
							<a href="#" title="修改头像" class="btn_link"></a> <img
								src="/products/logo/log.png">
								<div class="background_img"></div>
						</div>
						<div class="user_name">
							<p>
								<span class="name"><?=Yii::$app->user->identity->username?></span>
							</p>
							<p>上次访问时间：<?=Yii::$app->user->identity->lastlogtime?></p>
						</div>
					</div>
					<div class="sideMen">
						<dl class="accountSideOption1">
							<dt class="transaction_manage">
								<em class="icon_2"></em>会员中心
							</dt>
							<dd>
								<ul>
									<li><a href="/user/safe.html"> 安全中心</a></li>
									<li><a href="/user/cart.html"> 购物车</a></li>
									<li><a href="/user/collect.html"> 我的收藏</a></li>
								</ul>
							</dd>
						</dl>
						<!--菜单列表图层-->
						<dl class="accountSideOption1">
							<dt class="transaction_manage">
								<em class="icon_1"></em>订单中心
							</dt>
							<dd>
								<ul>
									<li><a href="/user/order.html"> 我的订单</a></li>
									<li><a href="/user/address.html">收货地址</a></li>
								</ul>
							</dd>
						</dl>
						
					</div>
				</div>
			</div>
			<!--右侧样式-->
			<div class="right_style">
    			<?=$content?>
			</div>
		</div>
	</div>

    
    <!--Begin Footer Begin -->
	<div class="b_btm_bg b_btm_c">
		<div class="b_btm">
			<table border="0"
				style="width: 210px; height: 62px; float: left; margin-left: 75px; margin-top: 30px;"
				cellspacing="0" cellpadding="0">
				<tr>
					<td width="72"><img src="/images/b1.png" width="62" height="62" /></td>
					<td><h2>正品保障</h2>正品行货 放心购买</td>
				</tr>
			</table>
			<table border="0"
				style="width: 210px; height: 62px; float: left; margin-left: 75px; margin-top: 30px;"
				cellspacing="0" cellpadding="0">
				<tr>
					<td width="72"><img src="/images/b2.png" width="62" height="62" /></td>
					<td><h2>满38包邮</h2>满38包邮 免运费</td>
				</tr>
			</table>
			<table border="0"
				style="width: 210px; height: 62px; float: left; margin-left: 75px; margin-top: 30px;"
				cellspacing="0" cellpadding="0">
				<tr>
					<td width="72"><img src="/images/b3.png" width="62" height="62" /></td>
					<td><h2>天天低价</h2>天天低价 畅选无忧</td>
				</tr>
			</table>
			<table border="0"
				style="width: 210px; height: 62px; float: left; margin-left: 75px; margin-top: 30px;"
				cellspacing="0" cellpadding="0">
				<tr>
					<td width="72"><img src="/images/b4.png" width="62" height="62" /></td>
					<td><h2>准时送达</h2>收货时间由你做主</td>
				</tr>
			</table>
		</div>
	</div>
	<div class="b_nav">
		<?php if(!empty($help[0])):?>
	<?php foreach($help[0] as $val):?>
		<dl>
			<dt>
				<a href="/help/index.html?id=<?=$val['id']?>"><?=$val['name']?></a>
			</dt>
			<?php if(!empty($help[$val['id']])):?>
			<?php foreach($help[$val['id']] as $v):?>
			<dd>
				<a href="/help/index.html?id=<?=$v['id']?>"><?=$v['name']?></a>
			</dd>
			<?php endforeach;?>
			<?php endif;?>
		</dl>
		<?php endforeach;?>
		<?php endif;?>
		<div class="b_tel_bg">
			<a href="#" class="b_sh1">新浪微博</a> <a href="#" class="b_sh2">腾讯微博</a>
			<p>
				服务热线：<br /> <span>187-6780-5516</span>
			</p>
		</div>
		<div class="b_er">
			<div class="b_er_c">
				<img src="/images/er.jpg" width="118" height="118" />
			</div>
			<img src="/images/ss.png" />
		</div>
	</div>
	<div class="btmbg">
		<div class="btm">
			备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com Copyright © 2015-2018
			尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
			<img src="/images/b_1.gif" width="98" height="33" /><img
				src="/images/b_2.gif" width="98" height="33" /><img
				src="/images/b_3.gif" width="98" height="33" /><img
				src="/images/b_4.gif" width="98" height="33" /><img
				src="/images/b_5.gif" width="98" height="33" /><img
				src="/images/b_6.gif" width="98" height="33" />
		</div>
	</div>
	<!--End Footer End -->
	<script src="/js/n_nav.js" type="text/javascript"></script>
<?php $this->endBody()?>
</body>
</html>
<?php $this->endPage()?>
